package com.yc.vote.mapper;

import com.yc.vote.entity.Items;
import com.yc.vote.entity.Record;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Options;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ly
 * @since 2022-07-03
 */
public interface RecordMapper extends BaseMapper<Record> {

    @Insert("insert into record values(default,#{vid},#{iid},#{usid})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    int insert(Record record);

}
